﻿using System;
using System.ComponentModel;
using System.Numerics;
using TaleWorlds.Core;
using TaleWorlds.GauntletUI;
using TaleWorlds.GauntletUI.BaseTypes;
using TaleWorlds.GauntletUI.Data;
using TaleWorlds.GauntletUI.ExtraWidgets;
using TaleWorlds.Library;
using TaleWorlds.MountAndBlade.GauntletUI.Widgets;
using TaleWorlds.MountAndBlade.GauntletUI.Widgets.Mission;
using TaleWorlds.MountAndBlade.GauntletUI.Widgets.Order;
using TaleWorlds.MountAndBlade.ViewModelCollection.Input;
using TaleWorlds.MountAndBlade.ViewModelCollection.Order;

namespace TaleWorlds.MountAndBlade.GauntletUI.AutoGenerated1
{
	// Token: 0x02000030 RID: 48
	public class OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_5_OrderTroopItem__InheritedPrefab : OrderTroopItemBrushWidget
	{
		// Token: 0x06000A1F RID: 2591 RVA: 0x0004D98B File Offset: 0x0004BB8B
		public OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_5_OrderTroopItem__InheritedPrefab(UIContext context) : base(context)
		{
		}

		// Token: 0x06000A20 RID: 2592 RVA: 0x0004D994 File Offset: 0x0004BB94
		public virtual void CreateWidgets()
		{
			this._widget = this;
			this._widget_0 = new GridWidget(base.Context);
			this._widget.AddChild(this._widget_0);
			this._widget_1 = new FillBar(base.Context);
			this._widget.AddChild(this._widget_1);
			this._widget_2 = new ListPanel(base.Context);
			this._widget.AddChild(this._widget_2);
			this._widget_2_0 = new Widget(base.Context);
			this._widget_2.AddChild(this._widget_2_0);
			this._widget_2_1 = new TextWidget(base.Context);
			this._widget_2.AddChild(this._widget_2_1);
			this._widget_3 = new Widget(base.Context);
			this._widget.AddChild(this._widget_3);
			this._widget_3_0 = new Widget(base.Context);
			this._widget_3.AddChild(this._widget_3_0);
			this._widget_3_0_0 = new InputKeyVisualWidget(base.Context);
			this._widget_3_0.AddChild(this._widget_3_0_0);
			this._widget_4 = new SliderWidget(base.Context);
			this._widget.AddChild(this._widget_4);
			this._widget_4_0 = new Widget(base.Context);
			this._widget_4.AddChild(this._widget_4_0);
			this._widget_4_1 = new Widget(base.Context);
			this._widget_4.AddChild(this._widget_4_1);
			this._widget_5 = new Widget(base.Context);
			this._widget.AddChild(this._widget_5);
			this._widget_6 = new ImageIdentifierWidget(base.Context);
			this._widget.AddChild(this._widget_6);
			this._widget_7 = new GridWidget(base.Context);
			this._widget.AddChild(this._widget_7);
			this._widget_8 = new Widget(base.Context);
			this._widget.AddChild(this._widget_8);
			this._widget_8_0 = new ListPanel(base.Context);
			this._widget_8.AddChild(this._widget_8_0);
			this._widget_8_0_0 = new OrderItemButtonWidget(base.Context);
			this._widget_8_0.AddChild(this._widget_8_0_0);
			this._widget_8_0_0_0 = new Widget(base.Context);
			this._widget_8_0_0.AddChild(this._widget_8_0_0_0);
			this._widget_8_0_1 = new FormationMarkerParentWidget(base.Context);
			this._widget_8_0.AddChild(this._widget_8_0_1);
			this._widget_8_0_1_0 = new BrushWidget(base.Context);
			this._widget_8_0_1.AddChild(this._widget_8_0_1_0);
			this._widget_8_0_1_0_0 = new Widget(base.Context);
			this._widget_8_0_1_0.AddChild(this._widget_8_0_1_0_0);
		}

		// Token: 0x06000A21 RID: 2593 RVA: 0x0004DC74 File Offset: 0x0004BE74
		public virtual void SetIds()
		{
			this._widget_0.Id = "PrimaryColorGrid";
			this._widget_4_0.Id = "Filler";
			this._widget_4_1.Id = "SliderHandle";
			this._widget_5.Id = "SelectionFrame";
			this._widget_8_0_0_0.Id = "Icon";
			this._widget_8_0_1_0.Id = "TeamTypeWidget";
			this._widget_8_0_1_0_0.Id = "FormationTypeMarker";
		}

		// Token: 0x06000A22 RID: 2594 RVA: 0x0004DCF4 File Offset: 0x0004BEF4
		public virtual void SetAttributes()
		{
			base.WidthSizePolicy = 0;
			base.HeightSizePolicy = 0;
			base.SuggestedWidth = 116.8f;
			base.SuggestedHeight = 198.4f;
			base.RangedCardBrush = base.Context.GetBrush("Order.Card.Background.Ranged");
			base.MeleeCardBrush = base.Context.GetBrush("Order.Card.Background.Melee");
			base.Brush = base.Context.GetBrush("Order.Card.Background");
			base.MarginTop = 25f;
			base.SelectionFrameWidget = this._widget_5;
			this._widget_0.WidthSizePolicy = 2;
			this._widget_0.HeightSizePolicy = 2;
			this._widget_0.HorizontalAlignment = 1;
			this._widget_0.VerticalAlignment = 1;
			this._widget_0.ColumnCount = 2;
			this._widget_0.DefaultCellHeight = 56f;
			this._widget_0.DefaultCellWidth = 46f;
			this._widget_1.WidthSizePolicy = 1;
			this._widget_1.HeightSizePolicy = 0;
			this._widget_1.SuggestedHeight = 13f;
			this._widget_1.VerticalAlignment = 2;
			this._widget_1.MarginLeft = 16f;
			this._widget_1.MarginRight = 16f;
			this._widget_1.MarginBottom = 18f;
			this._widget_1.MaxAmount = 100;
			this._widget_1.Brush = base.Context.GetBrush("Order.Troop.MoraleFillBar");
			this._widget_1.IsVisible = false;
			this._widget_2.WidthSizePolicy = 2;
			this._widget_2.HeightSizePolicy = 2;
			this._widget_2.MarginLeft = 15f;
			this._widget_2.MarginTop = 10f;
			this._widget_2.StackLayout.LayoutMethod = 0;
			this._widget_2_0.WidthSizePolicy = 0;
			this._widget_2_0.HeightSizePolicy = 0;
			this._widget_2_0.SuggestedWidth = 30f;
			this._widget_2_0.SuggestedHeight = 30f;
			this._widget_2_0.VerticalAlignment = 1;
			this._widget_2_0.Sprite = base.Context.SpriteData.GetSprite("General\\Icons\\Morale@2x");
			this._widget_2_1.WidthSizePolicy = 2;
			this._widget_2_1.HeightSizePolicy = 2;
			this._widget_2_1.MarginLeft = 1f;
			this._widget_2_1.MarginTop = 8f;
			this._widget_2_1.VerticalAlignment = 1;
			this._widget_2_1.Brush = base.Context.GetBrush("Order.Troop.CountText");
			this._widget_2_1.Brush.FontSize = 20;
			this._widget_3.WidthSizePolicy = 2;
			this._widget_3.HeightSizePolicy = 2;
			this._widget_3.HorizontalAlignment = 2;
			this._widget_3.MarginTop = 5f;
			this._widget_3.PositionXOffset = 15f;
			this._widget_3_0.WidthSizePolicy = 2;
			this._widget_3_0.HeightSizePolicy = 2;
			this._widget_3_0_0.WidthSizePolicy = 0;
			this._widget_3_0_0.HeightSizePolicy = 0;
			this._widget_3_0_0.SuggestedWidth = 60f;
			this._widget_3_0_0.SuggestedHeight = 60f;
			this._widget_4.WidthSizePolicy = 0;
			this._widget_4.HeightSizePolicy = 0;
			this._widget_4.SuggestedHeight = 3f;
			this._widget_4.SuggestedWidth = 65f;
			this._widget_4.HorizontalAlignment = 1;
			this._widget_4.VerticalAlignment = 2;
			this._widget_4.MarginBottom = 13f;
			this._widget_4.MarginLeft = 3f;
			this._widget_4.DoNotUpdateHandleSize = true;
			this._widget_4.Filler = this._widget_4_0;
			this._widget_4.Handle = this._widget_4_1;
			this._widget_4.MaxValueFloat = 1f;
			this._widget_4.MinValueFloat = 0f;
			this._widget_4.AlignmentAxis = 0;
			this._widget_4_0.DoNotAcceptEvents = true;
			this._widget_4_0.WidthSizePolicy = 0;
			this._widget_4_0.HeightSizePolicy = 0;
			this._widget_4_0.SuggestedHeight = 3f;
			this._widget_4_0.SuggestedWidth = 100f;
			this._widget_4_0.VerticalAlignment = 2;
			this._widget_4_0.Sprite = base.Context.SpriteData.GetSprite("BlankWhiteSquare_9");
			this._widget_4_1.WidthSizePolicy = 0;
			this._widget_4_1.HeightSizePolicy = 0;
			this._widget_4_1.SuggestedWidth = 2f;
			this._widget_4_1.SuggestedHeight = 2f;
			this._widget_4_1.HorizontalAlignment = 0;
			this._widget_4_1.VerticalAlignment = 1;
			this._widget_4_1.IsVisible = false;
			this._widget_5.WidthSizePolicy = 1;
			this._widget_5.HeightSizePolicy = 1;
			this._widget_5.Sprite = base.Context.SpriteData.GetSprite("order_formation_selector_9");
			this._widget_5.Color = new Color(0f, 1f, 0f, 1f);
			this._widget_5.IsVisible = false;
			this._widget_6.DoNotAcceptEvents = true;
			this._widget_6.WidthSizePolicy = 0;
			this._widget_6.HeightSizePolicy = 0;
			this._widget_6.SuggestedWidth = 31f;
			this._widget_6.SuggestedHeight = 22f;
			this._widget_6.HorizontalAlignment = 1;
			this._widget_6.VerticalAlignment = 0;
			this._widget_6.PositionYOffset = -20f;
			this._widget_7.WidthSizePolicy = 2;
			this._widget_7.HeightSizePolicy = 2;
			this._widget_7.HorizontalAlignment = 0;
			this._widget_7.VerticalAlignment = 2;
			this._widget_7.MarginBottom = 37f;
			this._widget_7.MarginLeft = 17f;
			this._widget_7.ColumnCount = 2;
			this._widget_7.DefaultCellHeight = 20f;
			this._widget_7.DefaultCellWidth = 20f;
			this._widget_8.WidthSizePolicy = 2;
			this._widget_8.HeightSizePolicy = 2;
			this._widget_8.HorizontalAlignment = 1;
			this._widget_8.VerticalAlignment = 2;
			this._widget_8_0.WidthSizePolicy = 2;
			this._widget_8_0.HeightSizePolicy = 0;
			this._widget_8_0.SuggestedHeight = 50f;
			this._widget_8_0.PositionYOffset = 30f;
			this._widget_8_0.StackLayout.LayoutMethod = 0;
			this._widget_8_0_0.WidthSizePolicy = 0;
			this._widget_8_0_0.HeightSizePolicy = 0;
			this._widget_8_0_0.SuggestedWidth = 30f;
			this._widget_8_0_0.SuggestedHeight = 30f;
			this._widget_8_0_0.VerticalAlignment = 1;
			this._widget_8_0_0.IconWidget = this._widget_8_0_0_0;
			this._widget_8_0_0.UpdateChildrenStates = true;
			this._widget_8_0_0.SelectionVisualWidget = (this._widget_8_0_0.FindChild("SelectionVisualWidget") as ImageWidget);
			this._widget_8_0_0.IsEnabled = false;
			this._widget_8_0_0_0.WidthSizePolicy = 1;
			this._widget_8_0_0_0.HeightSizePolicy = 1;
			this._widget_8_0_1.WidthSizePolicy = 2;
			this._widget_8_0_1.HeightSizePolicy = 2;
			this._widget_8_0_1.VerticalAlignment = 1;
			this._widget_8_0_1.FormationTypeMarker = this._widget_8_0_1_0_0;
			this._widget_8_0_1.TeamType = 2;
			this._widget_8_0_1.TeamTypeMarker = this._widget_8_0_1_0;
			this._widget_8_0_1_0.WidthSizePolicy = 0;
			this._widget_8_0_1_0.HeightSizePolicy = 0;
			this._widget_8_0_1_0.SuggestedHeight = 30f;
			this._widget_8_0_1_0.SuggestedWidth = 30f;
			this._widget_8_0_1_0.Brush = base.Context.GetBrush("FormationMarker.TeamType");
			this._widget_8_0_1_0_0.WidthSizePolicy = 1;
			this._widget_8_0_1_0_0.HeightSizePolicy = 1;
			this._widget_8_0_1_0_0.HorizontalAlignment = 1;
		}

		// Token: 0x06000A23 RID: 2595 RVA: 0x0004E4F4 File Offset: 0x0004C6F4
		public virtual void DestroyDataSource()
		{
			if (this._datasource_Root != null)
			{
				this._datasource_Root.PropertyChanged -= this.ViewModelPropertyChangedListenerOf_datasource_Root;
				this._datasource_Root.PropertyChangedWithValue -= new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithBoolValue -= new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithIntValue -= new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithFloatValue -= new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithUIntValue -= new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithColorValue -= new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithDoubleValue -= new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithVec2Value -= new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root);
				this._widget.PropertyChanged -= this.PropertyChangedListenerOf_widget;
				this._widget.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget;
				this._widget.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget;
				this._widget.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget;
				this._widget.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget;
				this._widget.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget;
				this._widget.intPropertyChanged -= this.intPropertyChangedListenerOf_widget;
				this._widget.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget;
				this._widget.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget;
				this._widget_1.PropertyChanged -= this.PropertyChangedListenerOf_widget_1;
				this._widget_1.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_1;
				this._widget_1.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_1;
				this._widget_1.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_1;
				this._widget_1.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_1;
				this._widget_1.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_1;
				this._widget_1.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_1;
				this._widget_1.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_1;
				this._widget_1.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_1;
				this._widget_2_1.PropertyChanged -= this.PropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_2_1;
				this._widget_3.PropertyChanged -= this.PropertyChangedListenerOf_widget_3;
				this._widget_3.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_3;
				this._widget_3.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_3;
				this._widget_3.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_3;
				this._widget_3.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_3;
				this._widget_3.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_3;
				this._widget_3.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_3;
				this._widget_3.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_3;
				this._widget_3.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_3;
				this._widget_3_0.PropertyChanged -= this.PropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_3_0;
				this._widget_4.PropertyChanged -= this.PropertyChangedListenerOf_widget_4;
				this._widget_4.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_4;
				this._widget_4.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_4;
				this._widget_4.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_4;
				this._widget_4.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_4;
				this._widget_4.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_4;
				this._widget_4.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_4;
				this._widget_4.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_4;
				this._widget_4.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_4;
				this._widget_8.PropertyChanged -= this.PropertyChangedListenerOf_widget_8;
				this._widget_8.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_8;
				this._widget_8.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_8;
				this._widget_8.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_8;
				this._widget_8.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_8;
				this._widget_8.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_8;
				this._widget_8.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_8;
				this._widget_8.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_8;
				this._widget_8.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_8;
				this._widget_8_0.PropertyChanged -= this.PropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_8_0;
				this._widget_8_0_0.PropertyChanged -= this.PropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_1.PropertyChanged -= this.PropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_8_0_1;
				if (this._datasource_Root_ActiveFormationClasses != null)
				{
					this._datasource_Root_ActiveFormationClasses.ListChanged -= new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFormationClassesChanged);
					for (int i = this._widget_0.ChildCount - 1; i >= 0; i--)
					{
						Widget child = this._widget_0.GetChild(i);
						((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate)child).OnBeforeRemovedChild(child);
						((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate)this._widget_0.GetChild(i)).DestroyDataSource();
					}
					this._datasource_Root_ActiveFormationClasses = null;
				}
				if (this._datasource_Root_SelectionKey != null)
				{
					this._datasource_Root_SelectionKey.PropertyChanged -= this.ViewModelPropertyChangedListenerOf_datasource_Root_SelectionKey;
					this._datasource_Root_SelectionKey.PropertyChangedWithValue -= new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithBoolValue -= new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithIntValue -= new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithFloatValue -= new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithUIntValue -= new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithColorValue -= new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithDoubleValue -= new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithVec2Value -= new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_SelectionKey);
					this._widget_3_0_0.PropertyChanged -= this.PropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_3_0_0;
					this._datasource_Root_SelectionKey = null;
				}
				if (this._datasource_Root_CommanderImageIdentifier != null)
				{
					this._datasource_Root_CommanderImageIdentifier.PropertyChanged -= this.ViewModelPropertyChangedListenerOf_datasource_Root_CommanderImageIdentifier;
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithValue -= new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithBoolValue -= new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithIntValue -= new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithFloatValue -= new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithUIntValue -= new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithColorValue -= new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithDoubleValue -= new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithVec2Value -= new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._widget_6.PropertyChanged -= this.PropertyChangedListenerOf_widget_6;
					this._widget_6.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_6;
					this._widget_6.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_6;
					this._widget_6.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_6;
					this._widget_6.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_6;
					this._widget_6.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_6;
					this._widget_6.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_6;
					this._widget_6.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_6;
					this._widget_6.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_6;
					this._datasource_Root_CommanderImageIdentifier = null;
				}
				if (this._datasource_Root_ActiveFilters != null)
				{
					this._datasource_Root_ActiveFilters.ListChanged -= new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFiltersChanged);
					for (int j = this._widget_7.ChildCount - 1; j >= 0; j--)
					{
						Widget child2 = this._widget_7.GetChild(j);
						((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate)child2).OnBeforeRemovedChild(child2);
						((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate)this._widget_7.GetChild(j)).DestroyDataSource();
					}
					this._datasource_Root_ActiveFilters = null;
				}
				this._datasource_Root = null;
			}
		}

		// Token: 0x06000A24 RID: 2596 RVA: 0x0004F232 File Offset: 0x0004D432
		public virtual void SetDataSource(OrderTroopItemVM dataSource)
		{
			this.RefreshDataSource_datasource_Root(dataSource);
		}

		// Token: 0x06000A25 RID: 2597 RVA: 0x0004F23B File Offset: 0x0004D43B
		private void PropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x06000A26 RID: 2598 RVA: 0x0004F244 File Offset: 0x0004D444
		private void boolPropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x06000A27 RID: 2599 RVA: 0x0004F24D File Offset: 0x0004D44D
		private void floatPropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x06000A28 RID: 2600 RVA: 0x0004F256 File Offset: 0x0004D456
		private void Vec2PropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x06000A29 RID: 2601 RVA: 0x0004F25F File Offset: 0x0004D45F
		private void Vector2PropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x06000A2A RID: 2602 RVA: 0x0004F268 File Offset: 0x0004D468
		private void doublePropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x06000A2B RID: 2603 RVA: 0x0004F271 File Offset: 0x0004D471
		private void intPropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x06000A2C RID: 2604 RVA: 0x0004F27A File Offset: 0x0004D47A
		private void uintPropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x06000A2D RID: 2605 RVA: 0x0004F283 File Offset: 0x0004D483
		private void ColorPropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x06000A2E RID: 2606 RVA: 0x0004F28C File Offset: 0x0004D48C
		private void HandleWidgetPropertyChangeOf_widget(string propertyName)
		{
			if (propertyName == "HasAmmo")
			{
				this._datasource_Root.IsAmmoAvailable = this._widget.HasAmmo;
				return;
			}
			if (propertyName == "CurrentMemberCount")
			{
				this._datasource_Root.CurrentMemberCount = this._widget.CurrentMemberCount;
				return;
			}
			if (propertyName == "IsSelectable")
			{
				this._datasource_Root.IsSelectable = this._widget.IsSelectable;
				return;
			}
			if (propertyName == "IsSelected")
			{
				this._datasource_Root.IsSelected = this._widget.IsSelected;
				return;
			}
			if (propertyName == "FormationClass")
			{
				return;
			}
			if (propertyName == "IsSelectionActive")
			{
				this._datasource_Root.IsSelectionActive = this._widget.IsSelectionActive;
				return;
			}
		}

		// Token: 0x06000A2F RID: 2607 RVA: 0x0004F35B File Offset: 0x0004D55B
		private void PropertyChangedListenerOf_widget_1(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1(propertyName);
		}

		// Token: 0x06000A30 RID: 2608 RVA: 0x0004F364 File Offset: 0x0004D564
		private void boolPropertyChangedListenerOf_widget_1(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1(propertyName);
		}

		// Token: 0x06000A31 RID: 2609 RVA: 0x0004F36D File Offset: 0x0004D56D
		private void floatPropertyChangedListenerOf_widget_1(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1(propertyName);
		}

		// Token: 0x06000A32 RID: 2610 RVA: 0x0004F376 File Offset: 0x0004D576
		private void Vec2PropertyChangedListenerOf_widget_1(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1(propertyName);
		}

		// Token: 0x06000A33 RID: 2611 RVA: 0x0004F37F File Offset: 0x0004D57F
		private void Vector2PropertyChangedListenerOf_widget_1(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1(propertyName);
		}

		// Token: 0x06000A34 RID: 2612 RVA: 0x0004F388 File Offset: 0x0004D588
		private void doublePropertyChangedListenerOf_widget_1(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1(propertyName);
		}

		// Token: 0x06000A35 RID: 2613 RVA: 0x0004F391 File Offset: 0x0004D591
		private void intPropertyChangedListenerOf_widget_1(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1(propertyName);
		}

		// Token: 0x06000A36 RID: 2614 RVA: 0x0004F39A File Offset: 0x0004D59A
		private void uintPropertyChangedListenerOf_widget_1(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1(propertyName);
		}

		// Token: 0x06000A37 RID: 2615 RVA: 0x0004F3A3 File Offset: 0x0004D5A3
		private void ColorPropertyChangedListenerOf_widget_1(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1(propertyName);
		}

		// Token: 0x06000A38 RID: 2616 RVA: 0x0004F3AC File Offset: 0x0004D5AC
		private void HandleWidgetPropertyChangeOf_widget_1(string propertyName)
		{
			if (propertyName == "CurrentAmount")
			{
				this._datasource_Root.Morale = this._widget_1.CurrentAmount;
				return;
			}
			if (propertyName == "InitialAmount")
			{
				this._datasource_Root.Morale = this._widget_1.InitialAmount;
				return;
			}
		}

		// Token: 0x06000A39 RID: 2617 RVA: 0x0004F401 File Offset: 0x0004D601
		private void PropertyChangedListenerOf_widget_2_1(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_1(propertyName);
		}

		// Token: 0x06000A3A RID: 2618 RVA: 0x0004F40A File Offset: 0x0004D60A
		private void boolPropertyChangedListenerOf_widget_2_1(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_1(propertyName);
		}

		// Token: 0x06000A3B RID: 2619 RVA: 0x0004F413 File Offset: 0x0004D613
		private void floatPropertyChangedListenerOf_widget_2_1(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_1(propertyName);
		}

		// Token: 0x06000A3C RID: 2620 RVA: 0x0004F41C File Offset: 0x0004D61C
		private void Vec2PropertyChangedListenerOf_widget_2_1(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_1(propertyName);
		}

		// Token: 0x06000A3D RID: 2621 RVA: 0x0004F425 File Offset: 0x0004D625
		private void Vector2PropertyChangedListenerOf_widget_2_1(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_1(propertyName);
		}

		// Token: 0x06000A3E RID: 2622 RVA: 0x0004F42E File Offset: 0x0004D62E
		private void doublePropertyChangedListenerOf_widget_2_1(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_1(propertyName);
		}

		// Token: 0x06000A3F RID: 2623 RVA: 0x0004F437 File Offset: 0x0004D637
		private void intPropertyChangedListenerOf_widget_2_1(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_1(propertyName);
		}

		// Token: 0x06000A40 RID: 2624 RVA: 0x0004F440 File Offset: 0x0004D640
		private void uintPropertyChangedListenerOf_widget_2_1(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_1(propertyName);
		}

		// Token: 0x06000A41 RID: 2625 RVA: 0x0004F449 File Offset: 0x0004D649
		private void ColorPropertyChangedListenerOf_widget_2_1(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_1(propertyName);
		}

		// Token: 0x06000A42 RID: 2626 RVA: 0x0004F454 File Offset: 0x0004D654
		private void HandleWidgetPropertyChangeOf_widget_2_1(string propertyName)
		{
			if (propertyName == "IntText")
			{
				this._datasource_Root.Morale = this._widget_2_1.IntText;
				return;
			}
			if (propertyName == "IsVisible")
			{
				this._datasource_Root.HaveTroops = this._widget_2_1.IsVisible;
				return;
			}
		}

		// Token: 0x06000A43 RID: 2627 RVA: 0x0004F4A9 File Offset: 0x0004D6A9
		private void PropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x06000A44 RID: 2628 RVA: 0x0004F4B2 File Offset: 0x0004D6B2
		private void boolPropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x06000A45 RID: 2629 RVA: 0x0004F4BB File Offset: 0x0004D6BB
		private void floatPropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x06000A46 RID: 2630 RVA: 0x0004F4C4 File Offset: 0x0004D6C4
		private void Vec2PropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x06000A47 RID: 2631 RVA: 0x0004F4CD File Offset: 0x0004D6CD
		private void Vector2PropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x06000A48 RID: 2632 RVA: 0x0004F4D6 File Offset: 0x0004D6D6
		private void doublePropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x06000A49 RID: 2633 RVA: 0x0004F4DF File Offset: 0x0004D6DF
		private void intPropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x06000A4A RID: 2634 RVA: 0x0004F4E8 File Offset: 0x0004D6E8
		private void uintPropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x06000A4B RID: 2635 RVA: 0x0004F4F1 File Offset: 0x0004D6F1
		private void ColorPropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x06000A4C RID: 2636 RVA: 0x0004F4FA File Offset: 0x0004D6FA
		private void HandleWidgetPropertyChangeOf_widget_3(string propertyName)
		{
			propertyName == "IsVisible";
		}

		// Token: 0x06000A4D RID: 2637 RVA: 0x0004F508 File Offset: 0x0004D708
		private void PropertyChangedListenerOf_widget_3_0(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0(propertyName);
		}

		// Token: 0x06000A4E RID: 2638 RVA: 0x0004F511 File Offset: 0x0004D711
		private void boolPropertyChangedListenerOf_widget_3_0(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0(propertyName);
		}

		// Token: 0x06000A4F RID: 2639 RVA: 0x0004F51A File Offset: 0x0004D71A
		private void floatPropertyChangedListenerOf_widget_3_0(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0(propertyName);
		}

		// Token: 0x06000A50 RID: 2640 RVA: 0x0004F523 File Offset: 0x0004D723
		private void Vec2PropertyChangedListenerOf_widget_3_0(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0(propertyName);
		}

		// Token: 0x06000A51 RID: 2641 RVA: 0x0004F52C File Offset: 0x0004D72C
		private void Vector2PropertyChangedListenerOf_widget_3_0(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0(propertyName);
		}

		// Token: 0x06000A52 RID: 2642 RVA: 0x0004F535 File Offset: 0x0004D735
		private void doublePropertyChangedListenerOf_widget_3_0(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0(propertyName);
		}

		// Token: 0x06000A53 RID: 2643 RVA: 0x0004F53E File Offset: 0x0004D73E
		private void intPropertyChangedListenerOf_widget_3_0(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0(propertyName);
		}

		// Token: 0x06000A54 RID: 2644 RVA: 0x0004F547 File Offset: 0x0004D747
		private void uintPropertyChangedListenerOf_widget_3_0(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0(propertyName);
		}

		// Token: 0x06000A55 RID: 2645 RVA: 0x0004F550 File Offset: 0x0004D750
		private void ColorPropertyChangedListenerOf_widget_3_0(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0(propertyName);
		}

		// Token: 0x06000A56 RID: 2646 RVA: 0x0004F559 File Offset: 0x0004D759
		private void HandleWidgetPropertyChangeOf_widget_3_0(string propertyName)
		{
			if (propertyName == "IsVisible")
			{
				this._datasource_Root.HaveTroops = this._widget_3_0.IsVisible;
				return;
			}
		}

		// Token: 0x06000A57 RID: 2647 RVA: 0x0004F57F File Offset: 0x0004D77F
		private void PropertyChangedListenerOf_widget_4(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget_4(propertyName);
		}

		// Token: 0x06000A58 RID: 2648 RVA: 0x0004F588 File Offset: 0x0004D788
		private void boolPropertyChangedListenerOf_widget_4(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget_4(propertyName);
		}

		// Token: 0x06000A59 RID: 2649 RVA: 0x0004F591 File Offset: 0x0004D791
		private void floatPropertyChangedListenerOf_widget_4(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget_4(propertyName);
		}

		// Token: 0x06000A5A RID: 2650 RVA: 0x0004F59A File Offset: 0x0004D79A
		private void Vec2PropertyChangedListenerOf_widget_4(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_4(propertyName);
		}

		// Token: 0x06000A5B RID: 2651 RVA: 0x0004F5A3 File Offset: 0x0004D7A3
		private void Vector2PropertyChangedListenerOf_widget_4(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_4(propertyName);
		}

		// Token: 0x06000A5C RID: 2652 RVA: 0x0004F5AC File Offset: 0x0004D7AC
		private void doublePropertyChangedListenerOf_widget_4(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget_4(propertyName);
		}

		// Token: 0x06000A5D RID: 2653 RVA: 0x0004F5B5 File Offset: 0x0004D7B5
		private void intPropertyChangedListenerOf_widget_4(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget_4(propertyName);
		}

		// Token: 0x06000A5E RID: 2654 RVA: 0x0004F5BE File Offset: 0x0004D7BE
		private void uintPropertyChangedListenerOf_widget_4(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget_4(propertyName);
		}

		// Token: 0x06000A5F RID: 2655 RVA: 0x0004F5C7 File Offset: 0x0004D7C7
		private void ColorPropertyChangedListenerOf_widget_4(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget_4(propertyName);
		}

		// Token: 0x06000A60 RID: 2656 RVA: 0x0004F5D0 File Offset: 0x0004D7D0
		private void HandleWidgetPropertyChangeOf_widget_4(string propertyName)
		{
			if (propertyName == "ValueFloat")
			{
				this._datasource_Root.AmmoPercentage = this._widget_4.ValueFloat;
				return;
			}
			if (propertyName == "IsVisible")
			{
				this._datasource_Root.IsAmmoAvailable = this._widget_4.IsVisible;
				return;
			}
		}

		// Token: 0x06000A61 RID: 2657 RVA: 0x0004F625 File Offset: 0x0004D825
		private void PropertyChangedListenerOf_widget_8(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8(propertyName);
		}

		// Token: 0x06000A62 RID: 2658 RVA: 0x0004F62E File Offset: 0x0004D82E
		private void boolPropertyChangedListenerOf_widget_8(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8(propertyName);
		}

		// Token: 0x06000A63 RID: 2659 RVA: 0x0004F637 File Offset: 0x0004D837
		private void floatPropertyChangedListenerOf_widget_8(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8(propertyName);
		}

		// Token: 0x06000A64 RID: 2660 RVA: 0x0004F640 File Offset: 0x0004D840
		private void Vec2PropertyChangedListenerOf_widget_8(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8(propertyName);
		}

		// Token: 0x06000A65 RID: 2661 RVA: 0x0004F649 File Offset: 0x0004D849
		private void Vector2PropertyChangedListenerOf_widget_8(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8(propertyName);
		}

		// Token: 0x06000A66 RID: 2662 RVA: 0x0004F652 File Offset: 0x0004D852
		private void doublePropertyChangedListenerOf_widget_8(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8(propertyName);
		}

		// Token: 0x06000A67 RID: 2663 RVA: 0x0004F65B File Offset: 0x0004D85B
		private void intPropertyChangedListenerOf_widget_8(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8(propertyName);
		}

		// Token: 0x06000A68 RID: 2664 RVA: 0x0004F664 File Offset: 0x0004D864
		private void uintPropertyChangedListenerOf_widget_8(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8(propertyName);
		}

		// Token: 0x06000A69 RID: 2665 RVA: 0x0004F66D File Offset: 0x0004D86D
		private void ColorPropertyChangedListenerOf_widget_8(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8(propertyName);
		}

		// Token: 0x06000A6A RID: 2666 RVA: 0x0004F676 File Offset: 0x0004D876
		private void HandleWidgetPropertyChangeOf_widget_8(string propertyName)
		{
			if (propertyName == "IsVisible")
			{
				this._datasource_Root.IsTargetRelevant = this._widget_8.IsVisible;
				return;
			}
		}

		// Token: 0x06000A6B RID: 2667 RVA: 0x0004F69C File Offset: 0x0004D89C
		private void PropertyChangedListenerOf_widget_8_0(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0(propertyName);
		}

		// Token: 0x06000A6C RID: 2668 RVA: 0x0004F6A5 File Offset: 0x0004D8A5
		private void boolPropertyChangedListenerOf_widget_8_0(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0(propertyName);
		}

		// Token: 0x06000A6D RID: 2669 RVA: 0x0004F6AE File Offset: 0x0004D8AE
		private void floatPropertyChangedListenerOf_widget_8_0(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0(propertyName);
		}

		// Token: 0x06000A6E RID: 2670 RVA: 0x0004F6B7 File Offset: 0x0004D8B7
		private void Vec2PropertyChangedListenerOf_widget_8_0(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0(propertyName);
		}

		// Token: 0x06000A6F RID: 2671 RVA: 0x0004F6C0 File Offset: 0x0004D8C0
		private void Vector2PropertyChangedListenerOf_widget_8_0(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0(propertyName);
		}

		// Token: 0x06000A70 RID: 2672 RVA: 0x0004F6C9 File Offset: 0x0004D8C9
		private void doublePropertyChangedListenerOf_widget_8_0(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0(propertyName);
		}

		// Token: 0x06000A71 RID: 2673 RVA: 0x0004F6D2 File Offset: 0x0004D8D2
		private void intPropertyChangedListenerOf_widget_8_0(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0(propertyName);
		}

		// Token: 0x06000A72 RID: 2674 RVA: 0x0004F6DB File Offset: 0x0004D8DB
		private void uintPropertyChangedListenerOf_widget_8_0(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0(propertyName);
		}

		// Token: 0x06000A73 RID: 2675 RVA: 0x0004F6E4 File Offset: 0x0004D8E4
		private void ColorPropertyChangedListenerOf_widget_8_0(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0(propertyName);
		}

		// Token: 0x06000A74 RID: 2676 RVA: 0x0004F6ED File Offset: 0x0004D8ED
		private void HandleWidgetPropertyChangeOf_widget_8_0(string propertyName)
		{
			if (propertyName == "IsVisible")
			{
				this._datasource_Root.HasTarget = this._widget_8_0.IsVisible;
				return;
			}
		}

		// Token: 0x06000A75 RID: 2677 RVA: 0x0004F713 File Offset: 0x0004D913
		private void PropertyChangedListenerOf_widget_8_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_0(propertyName);
		}

		// Token: 0x06000A76 RID: 2678 RVA: 0x0004F71C File Offset: 0x0004D91C
		private void boolPropertyChangedListenerOf_widget_8_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_0(propertyName);
		}

		// Token: 0x06000A77 RID: 2679 RVA: 0x0004F725 File Offset: 0x0004D925
		private void floatPropertyChangedListenerOf_widget_8_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_0(propertyName);
		}

		// Token: 0x06000A78 RID: 2680 RVA: 0x0004F72E File Offset: 0x0004D92E
		private void Vec2PropertyChangedListenerOf_widget_8_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_0(propertyName);
		}

		// Token: 0x06000A79 RID: 2681 RVA: 0x0004F737 File Offset: 0x0004D937
		private void Vector2PropertyChangedListenerOf_widget_8_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_0(propertyName);
		}

		// Token: 0x06000A7A RID: 2682 RVA: 0x0004F740 File Offset: 0x0004D940
		private void doublePropertyChangedListenerOf_widget_8_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_0(propertyName);
		}

		// Token: 0x06000A7B RID: 2683 RVA: 0x0004F749 File Offset: 0x0004D949
		private void intPropertyChangedListenerOf_widget_8_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_0(propertyName);
		}

		// Token: 0x06000A7C RID: 2684 RVA: 0x0004F752 File Offset: 0x0004D952
		private void uintPropertyChangedListenerOf_widget_8_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_0(propertyName);
		}

		// Token: 0x06000A7D RID: 2685 RVA: 0x0004F75B File Offset: 0x0004D95B
		private void ColorPropertyChangedListenerOf_widget_8_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_0(propertyName);
		}

		// Token: 0x06000A7E RID: 2686 RVA: 0x0004F764 File Offset: 0x0004D964
		private void HandleWidgetPropertyChangeOf_widget_8_0_0(string propertyName)
		{
			if (propertyName == "OrderIconID")
			{
				this._datasource_Root.CurrentOrderIconId = this._widget_8_0_0.OrderIconID;
				return;
			}
		}

		// Token: 0x06000A7F RID: 2687 RVA: 0x0004F78A File Offset: 0x0004D98A
		private void PropertyChangedListenerOf_widget_8_0_1(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_1(propertyName);
		}

		// Token: 0x06000A80 RID: 2688 RVA: 0x0004F793 File Offset: 0x0004D993
		private void boolPropertyChangedListenerOf_widget_8_0_1(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_1(propertyName);
		}

		// Token: 0x06000A81 RID: 2689 RVA: 0x0004F79C File Offset: 0x0004D99C
		private void floatPropertyChangedListenerOf_widget_8_0_1(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_1(propertyName);
		}

		// Token: 0x06000A82 RID: 2690 RVA: 0x0004F7A5 File Offset: 0x0004D9A5
		private void Vec2PropertyChangedListenerOf_widget_8_0_1(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_1(propertyName);
		}

		// Token: 0x06000A83 RID: 2691 RVA: 0x0004F7AE File Offset: 0x0004D9AE
		private void Vector2PropertyChangedListenerOf_widget_8_0_1(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_1(propertyName);
		}

		// Token: 0x06000A84 RID: 2692 RVA: 0x0004F7B7 File Offset: 0x0004D9B7
		private void doublePropertyChangedListenerOf_widget_8_0_1(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_1(propertyName);
		}

		// Token: 0x06000A85 RID: 2693 RVA: 0x0004F7C0 File Offset: 0x0004D9C0
		private void intPropertyChangedListenerOf_widget_8_0_1(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_1(propertyName);
		}

		// Token: 0x06000A86 RID: 2694 RVA: 0x0004F7C9 File Offset: 0x0004D9C9
		private void uintPropertyChangedListenerOf_widget_8_0_1(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_1(propertyName);
		}

		// Token: 0x06000A87 RID: 2695 RVA: 0x0004F7D2 File Offset: 0x0004D9D2
		private void ColorPropertyChangedListenerOf_widget_8_0_1(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget_8_0_1(propertyName);
		}

		// Token: 0x06000A88 RID: 2696 RVA: 0x0004F7DB File Offset: 0x0004D9DB
		private void HandleWidgetPropertyChangeOf_widget_8_0_1(string propertyName)
		{
			if (propertyName == "MarkerType")
			{
				this._datasource_Root.CurrentTargetFormationType = this._widget_8_0_1.MarkerType;
				return;
			}
		}

		// Token: 0x06000A89 RID: 2697 RVA: 0x0004F801 File Offset: 0x0004DA01
		private void PropertyChangedListenerOf_widget_3_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0_0(propertyName);
		}

		// Token: 0x06000A8A RID: 2698 RVA: 0x0004F80A File Offset: 0x0004DA0A
		private void boolPropertyChangedListenerOf_widget_3_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0_0(propertyName);
		}

		// Token: 0x06000A8B RID: 2699 RVA: 0x0004F813 File Offset: 0x0004DA13
		private void floatPropertyChangedListenerOf_widget_3_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0_0(propertyName);
		}

		// Token: 0x06000A8C RID: 2700 RVA: 0x0004F81C File Offset: 0x0004DA1C
		private void Vec2PropertyChangedListenerOf_widget_3_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0_0(propertyName);
		}

		// Token: 0x06000A8D RID: 2701 RVA: 0x0004F825 File Offset: 0x0004DA25
		private void Vector2PropertyChangedListenerOf_widget_3_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0_0(propertyName);
		}

		// Token: 0x06000A8E RID: 2702 RVA: 0x0004F82E File Offset: 0x0004DA2E
		private void doublePropertyChangedListenerOf_widget_3_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0_0(propertyName);
		}

		// Token: 0x06000A8F RID: 2703 RVA: 0x0004F837 File Offset: 0x0004DA37
		private void intPropertyChangedListenerOf_widget_3_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0_0(propertyName);
		}

		// Token: 0x06000A90 RID: 2704 RVA: 0x0004F840 File Offset: 0x0004DA40
		private void uintPropertyChangedListenerOf_widget_3_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0_0(propertyName);
		}

		// Token: 0x06000A91 RID: 2705 RVA: 0x0004F849 File Offset: 0x0004DA49
		private void ColorPropertyChangedListenerOf_widget_3_0_0(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3_0_0(propertyName);
		}

		// Token: 0x06000A92 RID: 2706 RVA: 0x0004F854 File Offset: 0x0004DA54
		private void HandleWidgetPropertyChangeOf_widget_3_0_0(string propertyName)
		{
			if (propertyName == "KeyID")
			{
				this._datasource_Root_SelectionKey.KeyID = this._widget_3_0_0.KeyID;
				return;
			}
			if (propertyName == "IsVisible")
			{
				this._datasource_Root_SelectionKey.IsVisible = this._widget_3_0_0.IsVisible;
				return;
			}
		}

		// Token: 0x06000A93 RID: 2707 RVA: 0x0004F8A9 File Offset: 0x0004DAA9
		private void PropertyChangedListenerOf_widget_6(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget_6(propertyName);
		}

		// Token: 0x06000A94 RID: 2708 RVA: 0x0004F8B2 File Offset: 0x0004DAB2
		private void boolPropertyChangedListenerOf_widget_6(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget_6(propertyName);
		}

		// Token: 0x06000A95 RID: 2709 RVA: 0x0004F8BB File Offset: 0x0004DABB
		private void floatPropertyChangedListenerOf_widget_6(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget_6(propertyName);
		}

		// Token: 0x06000A96 RID: 2710 RVA: 0x0004F8C4 File Offset: 0x0004DAC4
		private void Vec2PropertyChangedListenerOf_widget_6(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_6(propertyName);
		}

		// Token: 0x06000A97 RID: 2711 RVA: 0x0004F8CD File Offset: 0x0004DACD
		private void Vector2PropertyChangedListenerOf_widget_6(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_6(propertyName);
		}

		// Token: 0x06000A98 RID: 2712 RVA: 0x0004F8D6 File Offset: 0x0004DAD6
		private void doublePropertyChangedListenerOf_widget_6(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget_6(propertyName);
		}

		// Token: 0x06000A99 RID: 2713 RVA: 0x0004F8DF File Offset: 0x0004DADF
		private void intPropertyChangedListenerOf_widget_6(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget_6(propertyName);
		}

		// Token: 0x06000A9A RID: 2714 RVA: 0x0004F8E8 File Offset: 0x0004DAE8
		private void uintPropertyChangedListenerOf_widget_6(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget_6(propertyName);
		}

		// Token: 0x06000A9B RID: 2715 RVA: 0x0004F8F1 File Offset: 0x0004DAF1
		private void ColorPropertyChangedListenerOf_widget_6(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget_6(propertyName);
		}

		// Token: 0x06000A9C RID: 2716 RVA: 0x0004F8FA File Offset: 0x0004DAFA
		private void HandleWidgetPropertyChangeOf_widget_6(string propertyName)
		{
			if (propertyName == "AdditionalArgs")
			{
				return;
			}
			if (propertyName == "ImageId")
			{
				return;
			}
			propertyName == "ImageTypeCode";
		}

		// Token: 0x06000A9D RID: 2717 RVA: 0x0004F924 File Offset: 0x0004DB24
		private void ViewModelPropertyChangedListenerOf_datasource_Root(object sender, PropertyChangedEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x06000A9E RID: 2718 RVA: 0x0004F932 File Offset: 0x0004DB32
		private void ViewModelPropertyChangedWithValueListenerOf_datasource_Root(object sender, PropertyChangedWithValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x06000A9F RID: 2719 RVA: 0x0004F940 File Offset: 0x0004DB40
		private void ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root(object sender, PropertyChangedWithBoolValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x06000AA0 RID: 2720 RVA: 0x0004F94E File Offset: 0x0004DB4E
		private void ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root(object sender, PropertyChangedWithIntValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x06000AA1 RID: 2721 RVA: 0x0004F95C File Offset: 0x0004DB5C
		private void ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root(object sender, PropertyChangedWithFloatValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x06000AA2 RID: 2722 RVA: 0x0004F96A File Offset: 0x0004DB6A
		private void ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root(object sender, PropertyChangedWithUIntValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x06000AA3 RID: 2723 RVA: 0x0004F978 File Offset: 0x0004DB78
		private void ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root(object sender, PropertyChangedWithColorValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x06000AA4 RID: 2724 RVA: 0x0004F986 File Offset: 0x0004DB86
		private void ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root(object sender, PropertyChangedWithDoubleValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x06000AA5 RID: 2725 RVA: 0x0004F994 File Offset: 0x0004DB94
		private void ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root(object sender, PropertyChangedWithVec2ValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x06000AA6 RID: 2726 RVA: 0x0004F9A4 File Offset: 0x0004DBA4
		private void HandleViewModelPropertyChangeOf_datasource_Root(string propertyName)
		{
			if (propertyName == "ActiveFormationClasses")
			{
				this.RefreshDataSource_datasource_Root_ActiveFormationClasses(this._datasource_Root.ActiveFormationClasses);
				return;
			}
			if (propertyName == "SelectionKey")
			{
				this.RefreshDataSource_datasource_Root_SelectionKey(this._datasource_Root.SelectionKey);
				return;
			}
			if (propertyName == "CommanderImageIdentifier")
			{
				this.RefreshDataSource_datasource_Root_CommanderImageIdentifier(this._datasource_Root.CommanderImageIdentifier);
				return;
			}
			if (propertyName == "ActiveFilters")
			{
				this.RefreshDataSource_datasource_Root_ActiveFilters(this._datasource_Root.ActiveFilters);
				return;
			}
			if (propertyName == "IsAmmoAvailable")
			{
				this._widget.HasAmmo = this._datasource_Root.IsAmmoAvailable;
				this._widget_4.IsVisible = this._datasource_Root.IsAmmoAvailable;
				return;
			}
			if (propertyName == "CurrentMemberCount")
			{
				this._widget.CurrentMemberCount = this._datasource_Root.CurrentMemberCount;
				return;
			}
			if (propertyName == "IsSelectable")
			{
				this._widget.IsSelectable = this._datasource_Root.IsSelectable;
				return;
			}
			if (propertyName == "IsSelected")
			{
				this._widget.IsSelected = this._datasource_Root.IsSelected;
				return;
			}
			if (propertyName == "OrderOfBattleFormationClass")
			{
				return;
			}
			if (propertyName == "IsSelectionActive")
			{
				this._widget.IsSelectionActive = this._datasource_Root.IsSelectionActive;
				return;
			}
			if (propertyName == "Morale")
			{
				this._widget_1.CurrentAmount = this._datasource_Root.Morale;
				this._widget_1.InitialAmount = this._datasource_Root.Morale;
				this._widget_2_1.IntText = this._datasource_Root.Morale;
				return;
			}
			if (propertyName == "HaveTroops")
			{
				this._widget_2_1.IsVisible = this._datasource_Root.HaveTroops;
				this._widget_3_0.IsVisible = this._datasource_Root.HaveTroops;
				return;
			}
			if (propertyName == "CanUseShortcuts")
			{
				return;
			}
			if (propertyName == "AmmoPercentage")
			{
				this._widget_4.ValueFloat = this._datasource_Root.AmmoPercentage;
				return;
			}
			if (propertyName == "IsTargetRelevant")
			{
				this._widget_8.IsVisible = this._datasource_Root.IsTargetRelevant;
				return;
			}
			if (propertyName == "HasTarget")
			{
				this._widget_8_0.IsVisible = this._datasource_Root.HasTarget;
				return;
			}
			if (propertyName == "CurrentOrderIconId")
			{
				this._widget_8_0_0.OrderIconID = this._datasource_Root.CurrentOrderIconId;
				return;
			}
			if (propertyName == "CurrentTargetFormationType")
			{
				this._widget_8_0_1.MarkerType = this._datasource_Root.CurrentTargetFormationType;
				return;
			}
		}

		// Token: 0x06000AA7 RID: 2727 RVA: 0x0004FC51 File Offset: 0x0004DE51
		private void ViewModelPropertyChangedListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x06000AA8 RID: 2728 RVA: 0x0004FC5F File Offset: 0x0004DE5F
		private void ViewModelPropertyChangedWithValueListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedWithValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x06000AA9 RID: 2729 RVA: 0x0004FC6D File Offset: 0x0004DE6D
		private void ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedWithBoolValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x06000AAA RID: 2730 RVA: 0x0004FC7B File Offset: 0x0004DE7B
		private void ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedWithIntValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x06000AAB RID: 2731 RVA: 0x0004FC89 File Offset: 0x0004DE89
		private void ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedWithFloatValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x06000AAC RID: 2732 RVA: 0x0004FC97 File Offset: 0x0004DE97
		private void ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedWithUIntValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x06000AAD RID: 2733 RVA: 0x0004FCA5 File Offset: 0x0004DEA5
		private void ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedWithColorValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x06000AAE RID: 2734 RVA: 0x0004FCB3 File Offset: 0x0004DEB3
		private void ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedWithDoubleValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x06000AAF RID: 2735 RVA: 0x0004FCC1 File Offset: 0x0004DEC1
		private void ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedWithVec2ValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x06000AB0 RID: 2736 RVA: 0x0004FCD0 File Offset: 0x0004DED0
		private void HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(string propertyName)
		{
			if (propertyName == "KeyID")
			{
				this._widget_3_0_0.KeyID = this._datasource_Root_SelectionKey.KeyID;
				return;
			}
			if (propertyName == "IsVisible")
			{
				this._widget_3_0_0.IsVisible = this._datasource_Root_SelectionKey.IsVisible;
				return;
			}
		}

		// Token: 0x06000AB1 RID: 2737 RVA: 0x0004FD25 File Offset: 0x0004DF25
		private void ViewModelPropertyChangedListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x06000AB2 RID: 2738 RVA: 0x0004FD33 File Offset: 0x0004DF33
		private void ViewModelPropertyChangedWithValueListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedWithValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x06000AB3 RID: 2739 RVA: 0x0004FD41 File Offset: 0x0004DF41
		private void ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedWithBoolValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x06000AB4 RID: 2740 RVA: 0x0004FD4F File Offset: 0x0004DF4F
		private void ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedWithIntValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x06000AB5 RID: 2741 RVA: 0x0004FD5D File Offset: 0x0004DF5D
		private void ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedWithFloatValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x06000AB6 RID: 2742 RVA: 0x0004FD6B File Offset: 0x0004DF6B
		private void ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedWithUIntValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x06000AB7 RID: 2743 RVA: 0x0004FD79 File Offset: 0x0004DF79
		private void ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedWithColorValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x06000AB8 RID: 2744 RVA: 0x0004FD87 File Offset: 0x0004DF87
		private void ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedWithDoubleValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x06000AB9 RID: 2745 RVA: 0x0004FD95 File Offset: 0x0004DF95
		private void ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedWithVec2ValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x06000ABA RID: 2746 RVA: 0x0004FDA4 File Offset: 0x0004DFA4
		private void HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(string propertyName)
		{
			if (propertyName == "AdditionalArgs")
			{
				this._widget_6.AdditionalArgs = this._datasource_Root_CommanderImageIdentifier.AdditionalArgs;
				return;
			}
			if (propertyName == "Id")
			{
				this._widget_6.ImageId = this._datasource_Root_CommanderImageIdentifier.Id;
				return;
			}
			if (propertyName == "ImageTypeCode")
			{
				this._widget_6.ImageTypeCode = this._datasource_Root_CommanderImageIdentifier.ImageTypeCode;
				return;
			}
		}

		// Token: 0x06000ABB RID: 2747 RVA: 0x0004FE20 File Offset: 0x0004E020
		public void OnList_datasource_Root_ActiveFormationClassesChanged(object sender, ListChangedEventArgs e)
		{
			switch (e.ListChangedType)
			{
			case 0:
				for (int i = this._widget_0.ChildCount - 1; i >= 0; i--)
				{
					Widget child = this._widget_0.GetChild(i);
					((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate)child).OnBeforeRemovedChild(child);
					Widget child2 = this._widget_0.GetChild(i);
					((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate)child2).SetDataSource(null);
					this._widget_0.RemoveChild(child2);
				}
				return;
			case 1:
				for (int j = 0; j < this._datasource_Root_ActiveFormationClasses.Count; j++)
				{
					OrderTroopItemFormationClassVM bindingObject = this._datasource_Root_ActiveFormationClasses[j];
					this._widget_0.FindChild((Widget widget) => widget.GetComponent<GeneratedWidgetData>().Data == bindingObject).SetSiblingIndex(j, false);
				}
				return;
			case 2:
			{
				OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate = new OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate(base.Context);
				GeneratedWidgetData generatedWidgetData = new GeneratedWidgetData(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate);
				OrderTroopItemFormationClassVM orderTroopItemFormationClassVM = this._datasource_Root_ActiveFormationClasses[e.NewIndex];
				generatedWidgetData.Data = orderTroopItemFormationClassVM;
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate.AddComponent(generatedWidgetData);
				this._widget_0.AddChildAtIndex(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate, e.NewIndex);
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate.CreateWidgets();
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate.SetIds();
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate.SetAttributes();
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate.SetDataSource(orderTroopItemFormationClassVM);
				return;
			}
			case 3:
			{
				Widget child3 = this._widget_0.GetChild(e.NewIndex);
				((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate)child3).OnBeforeRemovedChild(child3);
				return;
			}
			case 4:
			{
				Widget child4 = this._widget_0.GetChild(e.NewIndex);
				((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate)child4).SetDataSource(null);
				this._widget_0.RemoveChild(child4);
				break;
			}
			case 5:
				break;
			default:
				return;
			}
		}

		// Token: 0x06000ABC RID: 2748 RVA: 0x0004FFBC File Offset: 0x0004E1BC
		public void OnList_datasource_Root_ActiveFiltersChanged(object sender, ListChangedEventArgs e)
		{
			switch (e.ListChangedType)
			{
			case 0:
				for (int i = this._widget_7.ChildCount - 1; i >= 0; i--)
				{
					Widget child = this._widget_7.GetChild(i);
					((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate)child).OnBeforeRemovedChild(child);
					Widget child2 = this._widget_7.GetChild(i);
					((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate)child2).SetDataSource(null);
					this._widget_7.RemoveChild(child2);
				}
				return;
			case 1:
				for (int j = 0; j < this._datasource_Root_ActiveFilters.Count; j++)
				{
					OrderTroopItemFilterVM bindingObject = this._datasource_Root_ActiveFilters[j];
					this._widget_7.FindChild((Widget widget) => widget.GetComponent<GeneratedWidgetData>().Data == bindingObject).SetSiblingIndex(j, false);
				}
				return;
			case 2:
			{
				OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate = new OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate(base.Context);
				GeneratedWidgetData generatedWidgetData = new GeneratedWidgetData(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate);
				OrderTroopItemFilterVM orderTroopItemFilterVM = this._datasource_Root_ActiveFilters[e.NewIndex];
				generatedWidgetData.Data = orderTroopItemFilterVM;
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate.AddComponent(generatedWidgetData);
				this._widget_7.AddChildAtIndex(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate, e.NewIndex);
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate.CreateWidgets();
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate.SetIds();
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate.SetAttributes();
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate.SetDataSource(orderTroopItemFilterVM);
				return;
			}
			case 3:
			{
				Widget child3 = this._widget_7.GetChild(e.NewIndex);
				((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate)child3).OnBeforeRemovedChild(child3);
				return;
			}
			case 4:
			{
				Widget child4 = this._widget_7.GetChild(e.NewIndex);
				((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate)child4).SetDataSource(null);
				this._widget_7.RemoveChild(child4);
				break;
			}
			case 5:
				break;
			default:
				return;
			}
		}

		// Token: 0x06000ABD RID: 2749 RVA: 0x00050158 File Offset: 0x0004E358
		private void RefreshDataSource_datasource_Root(OrderTroopItemVM newDataSource)
		{
			if (this._datasource_Root != null)
			{
				this._datasource_Root.PropertyChanged -= this.ViewModelPropertyChangedListenerOf_datasource_Root;
				this._datasource_Root.PropertyChangedWithValue -= new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithBoolValue -= new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithIntValue -= new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithFloatValue -= new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithUIntValue -= new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithColorValue -= new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithDoubleValue -= new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithVec2Value -= new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root);
				this._widget.PropertyChanged -= this.PropertyChangedListenerOf_widget;
				this._widget.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget;
				this._widget.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget;
				this._widget.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget;
				this._widget.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget;
				this._widget.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget;
				this._widget.intPropertyChanged -= this.intPropertyChangedListenerOf_widget;
				this._widget.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget;
				this._widget.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget;
				this._widget_1.PropertyChanged -= this.PropertyChangedListenerOf_widget_1;
				this._widget_1.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_1;
				this._widget_1.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_1;
				this._widget_1.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_1;
				this._widget_1.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_1;
				this._widget_1.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_1;
				this._widget_1.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_1;
				this._widget_1.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_1;
				this._widget_1.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_1;
				this._widget_2_1.PropertyChanged -= this.PropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_2_1;
				this._widget_3.PropertyChanged -= this.PropertyChangedListenerOf_widget_3;
				this._widget_3.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_3;
				this._widget_3.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_3;
				this._widget_3.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_3;
				this._widget_3.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_3;
				this._widget_3.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_3;
				this._widget_3.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_3;
				this._widget_3.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_3;
				this._widget_3.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_3;
				this._widget_3_0.PropertyChanged -= this.PropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_3_0;
				this._widget_4.PropertyChanged -= this.PropertyChangedListenerOf_widget_4;
				this._widget_4.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_4;
				this._widget_4.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_4;
				this._widget_4.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_4;
				this._widget_4.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_4;
				this._widget_4.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_4;
				this._widget_4.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_4;
				this._widget_4.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_4;
				this._widget_4.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_4;
				this._widget_8.PropertyChanged -= this.PropertyChangedListenerOf_widget_8;
				this._widget_8.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_8;
				this._widget_8.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_8;
				this._widget_8.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_8;
				this._widget_8.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_8;
				this._widget_8.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_8;
				this._widget_8.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_8;
				this._widget_8.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_8;
				this._widget_8.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_8;
				this._widget_8_0.PropertyChanged -= this.PropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_8_0;
				this._widget_8_0_0.PropertyChanged -= this.PropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_1.PropertyChanged -= this.PropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_8_0_1;
				if (this._datasource_Root_ActiveFormationClasses != null)
				{
					this._datasource_Root_ActiveFormationClasses.ListChanged -= new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFormationClassesChanged);
					for (int i = this._widget_0.ChildCount - 1; i >= 0; i--)
					{
						Widget child = this._widget_0.GetChild(i);
						((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate)child).OnBeforeRemovedChild(child);
						Widget child2 = this._widget_0.GetChild(i);
						((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate)child2).SetDataSource(null);
						this._widget_0.RemoveChild(child2);
					}
					this._datasource_Root_ActiveFormationClasses = null;
				}
				if (this._datasource_Root_SelectionKey != null)
				{
					this._datasource_Root_SelectionKey.PropertyChanged -= this.ViewModelPropertyChangedListenerOf_datasource_Root_SelectionKey;
					this._datasource_Root_SelectionKey.PropertyChangedWithValue -= new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithBoolValue -= new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithIntValue -= new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithFloatValue -= new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithUIntValue -= new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithColorValue -= new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithDoubleValue -= new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithVec2Value -= new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_SelectionKey);
					this._widget_3_0_0.PropertyChanged -= this.PropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_3_0_0;
					this._datasource_Root_SelectionKey = null;
				}
				if (this._datasource_Root_CommanderImageIdentifier != null)
				{
					this._datasource_Root_CommanderImageIdentifier.PropertyChanged -= this.ViewModelPropertyChangedListenerOf_datasource_Root_CommanderImageIdentifier;
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithValue -= new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithBoolValue -= new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithIntValue -= new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithFloatValue -= new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithUIntValue -= new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithColorValue -= new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithDoubleValue -= new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithVec2Value -= new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._widget_6.PropertyChanged -= this.PropertyChangedListenerOf_widget_6;
					this._widget_6.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_6;
					this._widget_6.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_6;
					this._widget_6.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_6;
					this._widget_6.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_6;
					this._widget_6.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_6;
					this._widget_6.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_6;
					this._widget_6.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_6;
					this._widget_6.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_6;
					this._datasource_Root_CommanderImageIdentifier = null;
				}
				if (this._datasource_Root_ActiveFilters != null)
				{
					this._datasource_Root_ActiveFilters.ListChanged -= new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFiltersChanged);
					for (int j = this._widget_7.ChildCount - 1; j >= 0; j--)
					{
						Widget child3 = this._widget_7.GetChild(j);
						((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate)child3).OnBeforeRemovedChild(child3);
						Widget child4 = this._widget_7.GetChild(j);
						((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate)child4).SetDataSource(null);
						this._widget_7.RemoveChild(child4);
					}
					this._datasource_Root_ActiveFilters = null;
				}
				this._datasource_Root = null;
			}
			this._datasource_Root = newDataSource;
			if (this._datasource_Root != null)
			{
				this._datasource_Root.PropertyChanged += this.ViewModelPropertyChangedListenerOf_datasource_Root;
				this._datasource_Root.PropertyChangedWithValue += new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithBoolValue += new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithIntValue += new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithFloatValue += new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithUIntValue += new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithColorValue += new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithDoubleValue += new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithVec2Value += new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root);
				this._widget.HasAmmo = this._datasource_Root.IsAmmoAvailable;
				this._widget.CurrentMemberCount = this._datasource_Root.CurrentMemberCount;
				this._widget.IsSelectable = this._datasource_Root.IsSelectable;
				this._widget.IsSelected = this._datasource_Root.IsSelected;
				this._widget.IsSelectionActive = this._datasource_Root.IsSelectionActive;
				this._widget.PropertyChanged += this.PropertyChangedListenerOf_widget;
				this._widget.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget;
				this._widget.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget;
				this._widget.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget;
				this._widget.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget;
				this._widget.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget;
				this._widget.intPropertyChanged += this.intPropertyChangedListenerOf_widget;
				this._widget.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget;
				this._widget.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget;
				this._widget_1.CurrentAmount = this._datasource_Root.Morale;
				this._widget_1.InitialAmount = this._datasource_Root.Morale;
				this._widget_1.PropertyChanged += this.PropertyChangedListenerOf_widget_1;
				this._widget_1.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_1;
				this._widget_1.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_1;
				this._widget_1.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_1;
				this._widget_1.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_1;
				this._widget_1.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_1;
				this._widget_1.intPropertyChanged += this.intPropertyChangedListenerOf_widget_1;
				this._widget_1.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_1;
				this._widget_1.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_1;
				this._widget_2_1.IntText = this._datasource_Root.Morale;
				this._widget_2_1.IsVisible = this._datasource_Root.HaveTroops;
				this._widget_2_1.PropertyChanged += this.PropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.intPropertyChanged += this.intPropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_2_1;
				this._widget_2_1.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_2_1;
				this._widget_3.PropertyChanged += this.PropertyChangedListenerOf_widget_3;
				this._widget_3.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_3;
				this._widget_3.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_3;
				this._widget_3.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_3;
				this._widget_3.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_3;
				this._widget_3.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_3;
				this._widget_3.intPropertyChanged += this.intPropertyChangedListenerOf_widget_3;
				this._widget_3.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_3;
				this._widget_3.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_3;
				this._widget_3_0.IsVisible = this._datasource_Root.HaveTroops;
				this._widget_3_0.PropertyChanged += this.PropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.intPropertyChanged += this.intPropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_3_0;
				this._widget_3_0.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_3_0;
				this._widget_4.ValueFloat = this._datasource_Root.AmmoPercentage;
				this._widget_4.IsVisible = this._datasource_Root.IsAmmoAvailable;
				this._widget_4.PropertyChanged += this.PropertyChangedListenerOf_widget_4;
				this._widget_4.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_4;
				this._widget_4.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_4;
				this._widget_4.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_4;
				this._widget_4.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_4;
				this._widget_4.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_4;
				this._widget_4.intPropertyChanged += this.intPropertyChangedListenerOf_widget_4;
				this._widget_4.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_4;
				this._widget_4.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_4;
				this._widget_8.IsVisible = this._datasource_Root.IsTargetRelevant;
				this._widget_8.PropertyChanged += this.PropertyChangedListenerOf_widget_8;
				this._widget_8.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_8;
				this._widget_8.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_8;
				this._widget_8.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_8;
				this._widget_8.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_8;
				this._widget_8.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_8;
				this._widget_8.intPropertyChanged += this.intPropertyChangedListenerOf_widget_8;
				this._widget_8.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_8;
				this._widget_8.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_8;
				this._widget_8_0.IsVisible = this._datasource_Root.HasTarget;
				this._widget_8_0.PropertyChanged += this.PropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.intPropertyChanged += this.intPropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_8_0;
				this._widget_8_0.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_8_0;
				this._widget_8_0_0.OrderIconID = this._datasource_Root.CurrentOrderIconId;
				this._widget_8_0_0.PropertyChanged += this.PropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.intPropertyChanged += this.intPropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_0.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_8_0_0;
				this._widget_8_0_1.MarkerType = this._datasource_Root.CurrentTargetFormationType;
				this._widget_8_0_1.PropertyChanged += this.PropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.intPropertyChanged += this.intPropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_8_0_1;
				this._widget_8_0_1.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_8_0_1;
				this._datasource_Root_ActiveFormationClasses = this._datasource_Root.ActiveFormationClasses;
				if (this._datasource_Root_ActiveFormationClasses != null)
				{
					this._datasource_Root_ActiveFormationClasses.ListChanged += new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFormationClassesChanged);
					for (int k = 0; k < this._datasource_Root_ActiveFormationClasses.Count; k++)
					{
						OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate = new OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate(base.Context);
						GeneratedWidgetData generatedWidgetData = new GeneratedWidgetData(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate);
						OrderTroopItemFormationClassVM orderTroopItemFormationClassVM = this._datasource_Root_ActiveFormationClasses[k];
						generatedWidgetData.Data = orderTroopItemFormationClassVM;
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate.AddComponent(generatedWidgetData);
						this._widget_0.AddChildAtIndex(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate, k);
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate.CreateWidgets();
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate.SetIds();
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate.SetAttributes();
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate.SetDataSource(orderTroopItemFormationClassVM);
					}
				}
				this._datasource_Root_SelectionKey = this._datasource_Root.SelectionKey;
				if (this._datasource_Root_SelectionKey != null)
				{
					this._datasource_Root_SelectionKey.PropertyChanged += this.ViewModelPropertyChangedListenerOf_datasource_Root_SelectionKey;
					this._datasource_Root_SelectionKey.PropertyChangedWithValue += new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithBoolValue += new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithIntValue += new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithFloatValue += new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithUIntValue += new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithColorValue += new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithDoubleValue += new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithVec2Value += new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_SelectionKey);
					this._widget_3_0_0.KeyID = this._datasource_Root_SelectionKey.KeyID;
					this._widget_3_0_0.IsVisible = this._datasource_Root_SelectionKey.IsVisible;
					this._widget_3_0_0.PropertyChanged += this.PropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.intPropertyChanged += this.intPropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_3_0_0;
					this._widget_3_0_0.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_3_0_0;
				}
				this._datasource_Root_CommanderImageIdentifier = this._datasource_Root.CommanderImageIdentifier;
				if (this._datasource_Root_CommanderImageIdentifier != null)
				{
					this._datasource_Root_CommanderImageIdentifier.PropertyChanged += this.ViewModelPropertyChangedListenerOf_datasource_Root_CommanderImageIdentifier;
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithValue += new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithBoolValue += new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithIntValue += new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithFloatValue += new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithUIntValue += new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithColorValue += new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithDoubleValue += new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithVec2Value += new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._widget_6.AdditionalArgs = this._datasource_Root_CommanderImageIdentifier.AdditionalArgs;
					this._widget_6.ImageId = this._datasource_Root_CommanderImageIdentifier.Id;
					this._widget_6.ImageTypeCode = this._datasource_Root_CommanderImageIdentifier.ImageTypeCode;
					this._widget_6.PropertyChanged += this.PropertyChangedListenerOf_widget_6;
					this._widget_6.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_6;
					this._widget_6.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_6;
					this._widget_6.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_6;
					this._widget_6.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_6;
					this._widget_6.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_6;
					this._widget_6.intPropertyChanged += this.intPropertyChangedListenerOf_widget_6;
					this._widget_6.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_6;
					this._widget_6.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_6;
				}
				this._datasource_Root_ActiveFilters = this._datasource_Root.ActiveFilters;
				if (this._datasource_Root_ActiveFilters != null)
				{
					this._datasource_Root_ActiveFilters.ListChanged += new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFiltersChanged);
					for (int l = 0; l < this._datasource_Root_ActiveFilters.Count; l++)
					{
						OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate = new OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate(base.Context);
						GeneratedWidgetData generatedWidgetData2 = new GeneratedWidgetData(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate);
						OrderTroopItemFilterVM orderTroopItemFilterVM = this._datasource_Root_ActiveFilters[l];
						generatedWidgetData2.Data = orderTroopItemFilterVM;
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate.AddComponent(generatedWidgetData2);
						this._widget_7.AddChildAtIndex(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate, l);
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate.CreateWidgets();
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate.SetIds();
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate.SetAttributes();
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate.SetDataSource(orderTroopItemFilterVM);
					}
				}
			}
		}

		// Token: 0x06000ABE RID: 2750 RVA: 0x00051E58 File Offset: 0x00050058
		private void RefreshDataSource_datasource_Root_ActiveFormationClasses(MBBindingList<OrderTroopItemFormationClassVM> newDataSource)
		{
			if (this._datasource_Root_ActiveFormationClasses != null)
			{
				this._datasource_Root_ActiveFormationClasses.ListChanged -= new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFormationClassesChanged);
				for (int i = this._widget_0.ChildCount - 1; i >= 0; i--)
				{
					Widget child = this._widget_0.GetChild(i);
					((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate)child).OnBeforeRemovedChild(child);
					Widget child2 = this._widget_0.GetChild(i);
					((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate)child2).SetDataSource(null);
					this._widget_0.RemoveChild(child2);
				}
				this._datasource_Root_ActiveFormationClasses = null;
			}
			this._datasource_Root_ActiveFormationClasses = newDataSource;
			this._datasource_Root_ActiveFormationClasses = this._datasource_Root.ActiveFormationClasses;
			if (this._datasource_Root_ActiveFormationClasses != null)
			{
				this._datasource_Root_ActiveFormationClasses.ListChanged += new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFormationClassesChanged);
				for (int j = 0; j < this._datasource_Root_ActiveFormationClasses.Count; j++)
				{
					OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate = new OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate(base.Context);
					GeneratedWidgetData generatedWidgetData = new GeneratedWidgetData(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate);
					OrderTroopItemFormationClassVM orderTroopItemFormationClassVM = this._datasource_Root_ActiveFormationClasses[j];
					generatedWidgetData.Data = orderTroopItemFormationClassVM;
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate.AddComponent(generatedWidgetData);
					this._widget_0.AddChildAtIndex(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate, j);
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate.CreateWidgets();
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate.SetIds();
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate.SetAttributes();
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_11_ItemTemplate.SetDataSource(orderTroopItemFormationClassVM);
				}
			}
		}

		// Token: 0x06000ABF RID: 2751 RVA: 0x00051F94 File Offset: 0x00050194
		private void RefreshDataSource_datasource_Root_SelectionKey(InputKeyItemVM newDataSource)
		{
			if (this._datasource_Root_SelectionKey != null)
			{
				this._datasource_Root_SelectionKey.PropertyChanged -= this.ViewModelPropertyChangedListenerOf_datasource_Root_SelectionKey;
				this._datasource_Root_SelectionKey.PropertyChangedWithValue -= new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithBoolValue -= new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithIntValue -= new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithFloatValue -= new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithUIntValue -= new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithColorValue -= new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithDoubleValue -= new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithVec2Value -= new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_SelectionKey);
				this._widget_3_0_0.PropertyChanged -= this.PropertyChangedListenerOf_widget_3_0_0;
				this._widget_3_0_0.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_3_0_0;
				this._widget_3_0_0.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_3_0_0;
				this._widget_3_0_0.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_3_0_0;
				this._widget_3_0_0.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_3_0_0;
				this._widget_3_0_0.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_3_0_0;
				this._widget_3_0_0.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_3_0_0;
				this._widget_3_0_0.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_3_0_0;
				this._widget_3_0_0.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_3_0_0;
				this._datasource_Root_SelectionKey = null;
			}
			this._datasource_Root_SelectionKey = newDataSource;
			this._datasource_Root_SelectionKey = this._datasource_Root.SelectionKey;
			if (this._datasource_Root_SelectionKey != null)
			{
				this._datasource_Root_SelectionKey.PropertyChanged += this.ViewModelPropertyChangedListenerOf_datasource_Root_SelectionKey;
				this._datasource_Root_SelectionKey.PropertyChangedWithValue += new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithBoolValue += new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithIntValue += new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithFloatValue += new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithUIntValue += new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithColorValue += new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithDoubleValue += new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithVec2Value += new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_SelectionKey);
				this._widget_3_0_0.KeyID = this._datasource_Root_SelectionKey.KeyID;
				this._widget_3_0_0.IsVisible = this._datasource_Root_SelectionKey.IsVisible;
				this._widget_3_0_0.PropertyChanged += this.PropertyChangedListenerOf_widget_3_0_0;
				this._widget_3_0_0.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_3_0_0;
				this._widget_3_0_0.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_3_0_0;
				this._widget_3_0_0.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_3_0_0;
				this._widget_3_0_0.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_3_0_0;
				this._widget_3_0_0.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_3_0_0;
				this._widget_3_0_0.intPropertyChanged += this.intPropertyChangedListenerOf_widget_3_0_0;
				this._widget_3_0_0.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_3_0_0;
				this._widget_3_0_0.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_3_0_0;
			}
		}

		// Token: 0x06000AC0 RID: 2752 RVA: 0x00052340 File Offset: 0x00050540
		private void RefreshDataSource_datasource_Root_CommanderImageIdentifier(ImageIdentifierVM newDataSource)
		{
			if (this._datasource_Root_CommanderImageIdentifier != null)
			{
				this._datasource_Root_CommanderImageIdentifier.PropertyChanged -= this.ViewModelPropertyChangedListenerOf_datasource_Root_CommanderImageIdentifier;
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithValue -= new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithBoolValue -= new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithIntValue -= new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithFloatValue -= new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithUIntValue -= new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithColorValue -= new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithDoubleValue -= new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithVec2Value -= new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._widget_6.PropertyChanged -= this.PropertyChangedListenerOf_widget_6;
				this._widget_6.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_6;
				this._widget_6.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_6;
				this._widget_6.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_6;
				this._widget_6.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_6;
				this._widget_6.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_6;
				this._widget_6.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_6;
				this._widget_6.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_6;
				this._widget_6.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_6;
				this._datasource_Root_CommanderImageIdentifier = null;
			}
			this._datasource_Root_CommanderImageIdentifier = newDataSource;
			this._datasource_Root_CommanderImageIdentifier = this._datasource_Root.CommanderImageIdentifier;
			if (this._datasource_Root_CommanderImageIdentifier != null)
			{
				this._datasource_Root_CommanderImageIdentifier.PropertyChanged += this.ViewModelPropertyChangedListenerOf_datasource_Root_CommanderImageIdentifier;
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithValue += new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithBoolValue += new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithIntValue += new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithFloatValue += new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithUIntValue += new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithColorValue += new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithDoubleValue += new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithVec2Value += new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._widget_6.AdditionalArgs = this._datasource_Root_CommanderImageIdentifier.AdditionalArgs;
				this._widget_6.ImageId = this._datasource_Root_CommanderImageIdentifier.Id;
				this._widget_6.ImageTypeCode = this._datasource_Root_CommanderImageIdentifier.ImageTypeCode;
				this._widget_6.PropertyChanged += this.PropertyChangedListenerOf_widget_6;
				this._widget_6.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_6;
				this._widget_6.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_6;
				this._widget_6.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_6;
				this._widget_6.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_6;
				this._widget_6.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_6;
				this._widget_6.intPropertyChanged += this.intPropertyChangedListenerOf_widget_6;
				this._widget_6.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_6;
				this._widget_6.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_6;
			}
		}

		// Token: 0x06000AC1 RID: 2753 RVA: 0x00052700 File Offset: 0x00050900
		private void RefreshDataSource_datasource_Root_ActiveFilters(MBBindingList<OrderTroopItemFilterVM> newDataSource)
		{
			if (this._datasource_Root_ActiveFilters != null)
			{
				this._datasource_Root_ActiveFilters.ListChanged -= new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFiltersChanged);
				for (int i = this._widget_7.ChildCount - 1; i >= 0; i--)
				{
					Widget child = this._widget_7.GetChild(i);
					((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate)child).OnBeforeRemovedChild(child);
					Widget child2 = this._widget_7.GetChild(i);
					((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate)child2).SetDataSource(null);
					this._widget_7.RemoveChild(child2);
				}
				this._datasource_Root_ActiveFilters = null;
			}
			this._datasource_Root_ActiveFilters = newDataSource;
			this._datasource_Root_ActiveFilters = this._datasource_Root.ActiveFilters;
			if (this._datasource_Root_ActiveFilters != null)
			{
				this._datasource_Root_ActiveFilters.ListChanged += new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFiltersChanged);
				for (int j = 0; j < this._datasource_Root_ActiveFilters.Count; j++)
				{
					OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate = new OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate(base.Context);
					GeneratedWidgetData generatedWidgetData = new GeneratedWidgetData(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate);
					OrderTroopItemFilterVM orderTroopItemFilterVM = this._datasource_Root_ActiveFilters[j];
					generatedWidgetData.Data = orderTroopItemFilterVM;
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate.AddComponent(generatedWidgetData);
					this._widget_7.AddChildAtIndex(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate, j);
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate.CreateWidgets();
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate.SetIds();
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate.SetAttributes();
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_12_ItemTemplate.SetDataSource(orderTroopItemFilterVM);
				}
			}
		}

		// Token: 0x04000243 RID: 579
		private OrderTroopItemBrushWidget _widget;

		// Token: 0x04000244 RID: 580
		private GridWidget _widget_0;

		// Token: 0x04000245 RID: 581
		private FillBar _widget_1;

		// Token: 0x04000246 RID: 582
		private ListPanel _widget_2;

		// Token: 0x04000247 RID: 583
		private Widget _widget_2_0;

		// Token: 0x04000248 RID: 584
		private TextWidget _widget_2_1;

		// Token: 0x04000249 RID: 585
		private Widget _widget_3;

		// Token: 0x0400024A RID: 586
		private Widget _widget_3_0;

		// Token: 0x0400024B RID: 587
		private InputKeyVisualWidget _widget_3_0_0;

		// Token: 0x0400024C RID: 588
		private SliderWidget _widget_4;

		// Token: 0x0400024D RID: 589
		private Widget _widget_4_0;

		// Token: 0x0400024E RID: 590
		private Widget _widget_4_1;

		// Token: 0x0400024F RID: 591
		private Widget _widget_5;

		// Token: 0x04000250 RID: 592
		private ImageIdentifierWidget _widget_6;

		// Token: 0x04000251 RID: 593
		private GridWidget _widget_7;

		// Token: 0x04000252 RID: 594
		private Widget _widget_8;

		// Token: 0x04000253 RID: 595
		private ListPanel _widget_8_0;

		// Token: 0x04000254 RID: 596
		private OrderItemButtonWidget _widget_8_0_0;

		// Token: 0x04000255 RID: 597
		private Widget _widget_8_0_0_0;

		// Token: 0x04000256 RID: 598
		private FormationMarkerParentWidget _widget_8_0_1;

		// Token: 0x04000257 RID: 599
		private BrushWidget _widget_8_0_1_0;

		// Token: 0x04000258 RID: 600
		private Widget _widget_8_0_1_0_0;

		// Token: 0x04000259 RID: 601
		private OrderTroopItemVM _datasource_Root;

		// Token: 0x0400025A RID: 602
		private MBBindingList<OrderTroopItemFormationClassVM> _datasource_Root_ActiveFormationClasses;

		// Token: 0x0400025B RID: 603
		private InputKeyItemVM _datasource_Root_SelectionKey;

		// Token: 0x0400025C RID: 604
		private ImageIdentifierVM _datasource_Root_CommanderImageIdentifier;

		// Token: 0x0400025D RID: 605
		private MBBindingList<OrderTroopItemFilterVM> _datasource_Root_ActiveFilters;
	}
}
